package Demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—05—17
 * Time: 6:44
 */
class Resume {
    private String name;
    private String sex;
    private int age;

    public Resume(){

    }

    public Resume(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void introduce(String name, String sex, int age){
        System.out.println("我是: " + name + "," + "性别: " + sex + "," + "年龄: " + age);
    }
}
public class Test01 {

    public static void main(String[] args) {
        Resume resume = new Resume();
        resume.introduce("李四","男",20);
    }
}
